package com.example.zhongcao.mapper;
import com.example.zhongcao.entity.Question;
import org.apache.ibatis.annotations.*;



@Mapper
public interface QuestionMapper {

    @Insert("insert into question(openid,question) values(#{openid},#{question})")
    void insertQuestion(String openid,String question);

    @Select("select * from question where openid=#{openid} and question=#{question}")
    Question selectByOpenidAndQuestion(String openid,String question);

    @Insert("insert into ques_pics(path,quesid) values(#{path},#{quesid})")
    void insertQuesPic(String path,Integer quesid);
}
